import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.core.SpringVersion;

/**
 * @author shixiaodong
 * @date 2023-12-29
 */
public class T1 {
	public static void main(String[] args) {
		String version = SpringVersion.getVersion();
//		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(DemoConfig.class);
		DemoEntity bean = context.getBean(DemoEntity.class);
		System.out.println(bean);
	}
}
